package com.competition.prediction.entity;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

@Data
public class CoinTransaction {
    private Long id;
    private Long userId;
    private Integer transactionType;
    private Long amount;
    private Long balanceAfter;
    private String description;
    private Long relatedId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}